package com.baseproject.slidingmenu;

import android.view.View;

/**
 * Created by hp on 2017/7/19.
 */

public interface ISlidingListener {

        /**
         * Called when a drawer's position changes.
         * @param slidingView The child view that was moved
         * @param slideOffset The new offset of this drawer within its range, from 0-1
         */
        void onSlidingSlide(View slidingView, float slideOffset);

        /**
         * Called when a drawer has settled in a completely open state.
         * The drawer is interactive at this point.
         *
         * @param slidingView Drawer view that is now open
         */
        void onSlidingOpened(View slidingView);

        /**
         * Called when a drawer has settled in a completely closed state.
         *
         * @param slidingView Drawer view that is now closed
         */
        void onSlidingClosed(View slidingView);

        /**
         * Called when the drawer motion state changes. The new state will
         * be one of {link #STATE_IDLE}, {link #STATE_DRAGGING} or {link #STATE_SETTLING}.
         *
         * @param newState The new drawer motion state
         */
        void onSlidingStateChanged(int newState);


}
